import Vue from 'vue'
import api from './utils/request.js'
import localApi from './utils/localRequest.js'
import App from './App'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'

import FileSaver from 'file-saver'
import XLSX from 'xlsx'

Vue.prototype.$FileSaver = FileSaver;
Vue.prototype.$XLSX = XLSX;

// import 'element-ui/lib/theme-chalk/index.css'
import './assets/style/theme/index.css';

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.prototype.$http = api;
Vue.prototype.$lhttp = localApi;
Vue.config.productionTip = false
Vue.use(ElementUI)

new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
